//
//  RYCHTTPImageQueue.h
//  RaiyiCommon
//
//  Created by zhiwei ma on 12-4-25.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import "RYCHTTPRequestQueue.h"

@class RYCHTTPImageQueue;
@protocol RYCHTTPImageQueueDelegate <NSObject>
@optional
- (void)didImageFinished:(RYCHTTPImageQueue*)aQueue imageURL:(NSURL*)aImageURL image:(UIImage*)aImage;
- (void)didImageFailed:(RYCHTTPImageQueue*)aQueue imageURL:(NSURL*)aImageURL;
@end

//
//RYCHTTPImageQueue
//图片获取队列
@interface RYCHTTPImageQueue : RYCHTTPRequestQueue
//返回requestID
- (NSInteger)addImage:(NSURL*)aImageURL delegate:(id<RYCHTTPImageQueueDelegate>)aDelegate useCache:(BOOL)aUseCache needCache:(BOOL)aNeedCache;
@end
